package com.ts.core.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 帖子
 * </p>
 *
 * @author testjava
 * @since 2024-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="LxbArticle对象", description="帖子")
public class LxbArticle implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "帖子ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "博主ID")
    private String bloggerId;

    @ApiModelProperty(value = "帖子名称")
    private String title;

    @ApiModelProperty(value = "帖子内容")
    private String intro;

    @ApiModelProperty(value = "审核状态0:未审核、1：审核中、2：审核通过")
    private Integer state;

    @ApiModelProperty(value = "点赞数")
    private Integer likes;

    @ApiModelProperty(value = "浏览数")
    private Integer browse;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill= FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill=FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Integer isDeleted;


}
